﻿<?xml version="1.0" encoding="utf-8"?>
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output method="html"/>

<xsl:template match="/pranesimas">
<html>
<head>
<title>Įtartinos vietos defektoskopui <xsl:value-of select="defektoskopo_kodas"/></title>
<style type="text/css">
body,div,
dl,dt,dd,
ul,ol,li,
h1,h2,h3,h4,h5,h6,
pre,
form,fieldset,input,textarea,
p,blockquote,
th,td { 
	margin:0;
	padding:0;
}
table {
	border-collapse:collapse;
	border-spacing:0;
}
fieldset,img { 
	border:0;
}
address,caption,cite,code,dfn,em,strong,th,var {
	font-style:normal;
	font-weight:normal;
}
ol,ul {
	list-style:none;
}
caption,th {
	text-align:left;
}
h1,h2,h3,h4,h5,h6 {
	font-size:100%;
	font-weight:normal;
}
q:before,q:after {
	content:'';
}
abbr,acronym {
	border:0;
}

body {
	background-color: #FFFFFF;
	color: #000000;
	font-family:"Trebuchet MS", Arial, Helvetica, sans-serif;
	font-size: 85%;
}

h1 {font-size: 1.25em; font-weight: bold; margin-bottom: 10px;}
h2 {font-size: 1.10em;}
h3 {font-size: 1.05em;}

p#warning {
	margin-top: .5em;
	margin-bottom: .5em;
	font-size: 90%;
	font-style: italic;
}

a:link, a:visited {color: #0033CC;}
a:hover {color: #666666;}

table, th, td {	
	vertical-align: middle;
	padding: 1px 2px 1px 2px;
	font-size: 97%;
	text-align: center;	
}

table {
	margin: 0;
	width: 270mm;
}
th {
	font-weight: bold;
}

td, th {
	border: 1px solid black;
}

.wrapword{
	white-space: -moz-pre-wrap !important;  /* Mozilla, since 1999 */ 
	white-space: -pre-wrap;      /* Opera 4-6 */ 
	white-space: -o-pre-wrap;    /* Opera 7 */ 
	white-space: pre-wrap;       /* css-3 */ 
	word-wrap: break-word;       /* Internet Explorer 5.5+ */ 
}

.align_left {
	text-align: left;
}

.align_center {
	text-align: center;
}

tr.oper {
	height:30px;
}

.align_right {
	text-align: right;
}

/*
.border_left {
	border-left-width: 3px;
}

.border_right {
	border-right-width: 3px;
}
*/

.vkodas {width: 11%}
.d0 {width: 5%;}
.d70p {width: 5%;}
.d55ad {width: 5%;}
.d55an {width: 5%;}
.d42p {width: 5%;}
.d42a {width: 5%;}
.d70a {width: 5%;}
.d55pd {width: 5%;}
.pastaba {width: 23%;}
.rasta_dfId {width: 4%;}
.rasta_data {width: 7%;}
.defFailoNr {width: 5%;}
.id {width: 4%;}
</style>
</head>
<body>
<h1 id="document_title">Įtartinos vietos defektoskopui <xsl:value-of select="defektoskopo_kodas"/></h1>
<p>Įteikti: operatoriui - <span id="iteikti_operId"><xsl:value-of select="iteikti_operatoriui_vardu"/></span>, iki datos - <span id="iteikti_data"><xsl:value-of select="iteikti_iki_datos"/></span></p>
<p id="warning">Šitas pranešimas yra sukurtas pagal ištisinės kontrolės defektoskopų darbo grafiką ir skirtas konkrečiam defektoskopui. Todėl, pasikeitus defektoskopo operatoriui, pranešimas turi likti prie defektoskopo ir būti įteiktas naujam operatoriui.</p>
	<table>
		<tr>
			<th class="vkodas align_center" rowspan="2">Vietos kodas</th>
			<th colspan="9">Defekto aprašymas</th>
			<th colspan="4">Aptikta</th>
		</tr>
		<tr>
			<th class="d0">0</th>
			<th class="d70p">70p</th>
			<th class="d55ad">55ad</th>
			<th class="d55an">55an</th>
			<th class="d42p">42p</th>
			<th class="d42a">42a</th>
			<th class="d70a">70a</th>
			<th class="d55pd">55pd</th>
			<th class="pastaba">pastaba</th>
			<th class="rasta_dfId">d. kodas</th>
			<th class="rasta_data">data</th>
			<th class="defFailoNr">įrašo Nr.</th>
			<th class="id">IDNr</th>
		</tr>
      <xsl:for-each select="itartinos_vietos/irasas">
        <tr>          
            <td class="vkodas align_center">
              <xsl:value-of select="vietos_kodas/k11"/><xsl:value-of select="vietos_kodas/k12"/>.<xsl:value-of select="vietos_kodas/k21"/><xsl:value-of select="vietos_kodas/k22"/><xsl:value-of select="vietos_kodas/k23"/><xsl:value-of select="vietos_kodas/k24"/>.<xsl:value-of select="vietos_kodas/k31"/><xsl:value-of select="vietos_kodas/k32"/>.<xsl:value-of select="vietos_kodas/k41"/><xsl:value-of select="vietos_kodas/k42"/>.<xsl:value-of select="vietos_kodas/k51"/>
            </td>
          <td class="d0">
            <xsl:value-of select="defekto_aprasymas/d0" />
          </td>
          <td class="d70p">
            <xsl:value-of select="defekto_aprasymas/d70p" />
          </td>
          <td class="d55ad">
            <xsl:value-of select="defekto_aprasymas/d55ad" />
          </td>
          <td class="d55an">
            <xsl:value-of select="defekto_aprasymas/d55an" />
          </td>
          <td class="d42p">
            <xsl:value-of select="defekto_aprasymas/d42p" />
          </td>
          <td class="d42a">
            <xsl:value-of select="defekto_aprasymas/d42a" />
          </td>
          <td class="d70a">
            <xsl:value-of select="defekto_aprasymas/d70a" />
          </td>
          <td class="d55pd">
            <xsl:value-of select="defekto_aprasymas/d55pd" />
          </td>
          <td class="pastaba wrapword align_left">
            <xsl:value-of select="defekto_aprasymas/pastaba" />
          </td>
          <td class="rasta_dfId">
            <xsl:value-of select="rasta_dfId" />
          </td>
          <td class="rasta_data">
            <xsl:value-of select="rasta_data" />
          </td>
          <td class="defFailoNr">
            <xsl:value-of select="defFailoNr" />
          </td>
          <td class="id">
            <xsl:value-of select="id" />
          </td>
        </tr>
		<!--
		<tr class="oper">
		  <td colspan="10"></td>
		  <td colspan="4"></td>
		</tr>
		-->
      </xsl:for-each>    
	</table>
</body>
</html>
</xsl:template>
</xsl:stylesheet>